<?php

namespace App\Http\Controllers\Index;

use App\Http\Controllers\Controller;

class IndexController extends Controller
{
    public function __construct()
    {
        $this->middleware('guest');
    }


    public function index()
    {
        // 获取文章列表数据
        $article = [];
        $assign = [
            'category_id' => 'index',
            'article' => $article,
            'tagName' => ''
        ];
        return view('home.index.index', $assign);
    }


    public function category($job)
    {
        return $job;
    }
}
